import { onReachBottom } from '@dcloudio/uni-app'
import { reactive, ref } from 'vue'

// 商品列表共用方法
export const useGoodsList = () => {
  const useGoods = ref([]);
  const useState = reactive({
    // more/loading/noMore
    status: ""
  });
  
  // 页面触底
  onReachBottom(() => {
    console.log("公共触底");
  });
  
  return {
    useGoods,
    useState
  }
}